package com.industrial.app.controller.formal;



import com.industrial.app.service.IAppIndexService;
import com.industrial.common.core.web.controller.BaseController;
import com.industrial.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * App首页
 * @author sangguangcan
 */
@RestController
@RequestMapping("/biz/formal/index")
public class AppIndexController extends BaseController {

    @Autowired
    private IAppIndexService appIndexService;

    @GetMapping("/getIndexMenu")
    public AjaxResult getIndexMenu(){
        Map<String,Object> result = appIndexService.getIndexMenu();
        return AjaxResult.success(result);
    }

    @GetMapping("/quetyShengFen")
    public AjaxResult quetyShengFen(){
        return appIndexService.quetyShengFen();
    }

    /**
     * 首页增加值工业同比
     * @param params
     * @return
     */
    @GetMapping("/queryZddqgyzjztb")
    public AjaxResult queryZddqgyzjztb(@RequestParam Map<String,String> params){
        return appIndexService.queryZddqgyzjztb(params);
    }
}
